/* 
 * Copyright 2014 ShangDao.Ltd  All rights reserved.
 * SiChuan ShangDao.Ltd PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * 
 * @welcomeAnimEntity_1.java  2014年6月12日 上午11:36:37 - Guzhu
 * @author Guzhu
 * @email:muyi126@163.com
 * @version 1.0
 */

package com.android.tiango.baba.cookie.welcome;

import java.util.ArrayList;

import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.android.scsd.tiango.R;
import com.android.tiango.baba.act.ActLogin;
import com.nineoldandroids.animation.Animator;
import com.nineoldandroids.view.AnimBean2;

public class WelcomeAnimEntity_1 extends WelcomeAnimEntity implements Animator.AnimatorListener{
	boolean isFirst=true;
	ArrayList<AnimBean2> listAnimators = new ArrayList<AnimBean2>();
	private Context mContext;
	private TextView mLogin;
	public WelcomeAnimEntity_1(Context context) {
		super();
		mContext = context;
		init(context);
	}

	private void init(final Context context) {
		view = (View) LayoutInflater.from(context).inflate(R.layout.layout_welcome_a1, null);
		mLogin = (TextView) view.findViewById(R.id.tv_login);
		mLogin.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(context,ActLogin.class);
				context.startActivity(intent);
			}
		});
	}
	
	public void startAnim(){
	}
	public void startReAnim(){
	}
	
	
	private int getHeight() {
		// TODO Auto-generated method stub
		return mContext.getResources().getDisplayMetrics().heightPixels;
	}
	private int getWidth() {
		// TODO Auto-generated method stub
		return mContext.getResources().getDisplayMetrics().widthPixels;
	}


	@Override
	public void onAnimationStart(Animator animation) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onAnimationEnd(Animator animation) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onAnimationCancel(Animator animation) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onAnimationRepeat(Animator animation) {
		// TODO Auto-generated method stub
		
	}


	public void setView(View view) {
		this.view = view;
	}
	
	

}
